Micron Document
🌎 rns.kin.earth git 🌍

Node / dev / reticulum / commits / 4be2ae6

Commit 4be2ae6c706e9561d4907baff3cf52cc4a4d0021


Parents : dbdeba2
Author : Mark Qvist <mark@unsigned.io>
Date : 2023-09-21T18:32:36+02:00

Fixed verbose output bug in rnprobe

Changes

1 files changed, 4 insertions(+), 1 deletions(-)


Diff

diff --git a/RNS/Utilities/rnprobe.py b/RNS/Utilities/rnprobe.py
index 7616b63f..6589fdbf 100644
--- a/RNS/Utilities/rnprobe.py
+++ b/RNS/Utilities/rnprobe.py
@@ -100,7 +100,10 @@ def program_setup(configdir, destination_hexhash, size=None, full_name = None, v
receipt = probe.send()
if more_output:
- more = " via "+RNS.prettyhexrep(reticulum.get_next_hop(destination_hash))+" on "+str(reticulum.get_next_hop_if_name(destination_hash))
+ nhd = reticulum.get_next_hop(destination_hash)
+ via_str = " via "+RNS.prettyhexrep(nhd) if nhd != None else ""
+ if_str = " on "+str(reticulum.get_next_hop_if_name(destination_hash)) if reticulum.get_next_hop_if_name(destination_hash) != "None" else ""
+ more = via_str+if_str
else:
more = ""

Served by rngit 1.5.2 - Generated in 0.05s